package com.pattern.strategy.BankTemplateMethod;

public class text {
    public static void main(String[] args) {
        BankTemplateMethod btm1 = new BankTemplateMethod() {
            @Override
            public void transact() {
                System.out.println("我要存钱！");
            }
        };
        btm1.process();
        System.out.println("---------------------------");
        BankTemplateMethod btm2 = new BankTemplateMethod() {
            @Override
            public void transact() {
                System.out.println("我要理财！我这里有2000万韩币");
            }
        };
        btm2.process();
    }
}
